/*
 * @Author: 小豪
 * @Description:
 * @Date: 2024-05-23 18:13:16
 * @LastEditTime: 2024-05-23 18:26:47
 * @FilePath: \bsct\gohub\app\http\controllers\api\v1\links_controller.go
 */
package v1

import (
	"gohub/app/models/link"
	"gohub/pkg/response"
	"time"

	"github.com/gin-gonic/gin"
)

type LinksController struct {
	BaseAPIController
}

func (ctrl *LinksController) Index(c *gin.Context) {

	response.JSON(c, gin.H{
		"success":    true,
		"total_page": "",
		"status":     "200",
		"msg":        "成功！",
		"data":       link.AllCached(),
		"time":       time.Now().Unix(),
	})
}
